//
//  UUNotificationUnreadCountRequestModel.m
//  UUCharterSupplier
//
//  Created by ZhangAo on 09/03/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import "UUNotificationUnreadCountRequestModel.h"

@implementation UUNotificationUnreadCountRequestModel

- (NSString *)url {
    return @"message/unread";
}

- (DKHTTPMethod)HTTPMethod {
    return DKHTTPMethodGet;
}

- (Class)responseModelClass {
    return [UUNotificationUnreadCountResponseModel class];
}

@end

@implementation UUNotificationUnreadCountResponseModel

- (Class)classAtInsideOfObjectWithProperty:(NSString *)propertyName {
    if (propertyName == nil) {
        return [NSNumber class];
    } else {
        return [super classAtInsideOfObjectWithProperty:propertyName];
    }
}

@end
